package com.changgou.order.service.impl;

import com.changgou.goods.feign.SkuFeign;
import com.changgou.goods.pojo.Sku;
import com.changgou.order.dao.OrderMapper;
import com.changgou.order.pojo.Order;
import com.changgou.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Autowired
    private SkuFeign skuFeign;


    //查询所有订单
    @Override
    public List<Order> list() {
        List<Order> orders = orderMapper.selectAll();
        return orders;
    }


    //查询订单详细信息,返回一个sku的具体信息
    @Override
    public Sku findDetail(String id) {

        return null;
    }
}
